// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "../StructAndEnum/StructAndEnum.h"
#include "UMGLibrary.generated.h"

/**
 * 
 */
UCLASS()
class SGAME_API UUMGLibrary : public UBlueprintFunctionLibrary
{
	GENERATED_BODY()
public:
	UFUNCTION(BlueprintCallable)
		static void LoadUIConfig(TMap<FString,FUIConfig>& Config);
	UFUNCTION(BlueprintCallable)
		static void AddToRoot(UObject* Object);
	UFUNCTION(BlueprintCallable)
		static void RemoveFormRoot(UObject* Object);
	UFUNCTION(BlueprintCallable)
		static UMySQLSubsystem* GetMySQLSub(const UObject* WorldContextObject);
	UFUNCTION(BlueprintCallable)
		static void ShowMessage(const FString& Message,FColor color);
};
